<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@include file="/WEB-INF/views/include/head.jsp" %>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>

<head> 
	<meta name="decorator" content="moduleEdit"/> 
<script type="text/javascript"> 
$(document).ready(function() {
	$("#name").focus();
});

 var submit = function (v, h, f) {  
	  if (v == 1) { 
		  $.jBox.close(); 
		  window.open("${contextPath}/${student.versionUrl}/${student.mainId}/${student.versionId}.${student.assistId}/getMainVersion");  
	  }  
	  if (v == 0) {  
		  $.jBox.close();   
	  }    
	  return true;
  };   
  
function submitform(method){
	var url = "${contextPath}/bpm/example/busForm/"+method;
	$("#busForm").attr("action",url);
	$("#busForm").submit();
}
</script>

</head>
<body>
	<div class="panel panel-default"> 
	  <div class="col-xs-12 panel-heading">
	    <h2 class="panel-title o-v-action">
	    </h2>
	  </div> 
	  
	  		<div class="col-sm-12" >
                <ul class="nav nav-tabs Report_f_title_2">
                    <li><a href="#label_1" data-toggle="tab">基本信息</a></li>
                    <li><a href="#workflow" data-toggle="tab">流程审批</a></li> 
			  		<li><a href="#diagram" data-toggle="tab">流程图</a></li>
                  </ul>
                  <!-- Tab panes -->
                  <form:form id="busForm" modelAttribute="student" method="post" class="form-inline" role="form">
                   <div class="tab-content" style="height:60%;width:100%">
                    <div class="tab-pane active" id="label_1">
                         <div class="Report_f_title_4">
                              
					           	   <form:hidden path="id"/>
								   <tags:message content="${message}"/>
                                   <div class="f_2">
                                       <div class="form-group col-sm-6">
                                            <label for="inputtext3" class="col-sm-3 control-label f_4">名称: </label>
                                            <div class="col-sm-9 f_6">
                                              <form:input id="name" path="name" maxlength="200" class="f_5 required"/>
                                            </div>
                                        </div>
                                   </div>
                                    <div class="f_3">
                                        <div class="form-group col-xs-12">
                                             <label for="inputtext3" class="col-lb-1 control-label f_10">介绍：</label>
                                             <div class="col-sm-10 col-lb-2 f_6">
                                                  <form:textarea id="intro" path="intro" htmlEscape="false" rows="3" class="form-control f_11"/>
                                             </div>
                                         </div>
                                    </div>
                                    <div class="f_2">
                                        <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_4">提交人：</label>
                                             <div class="col-sm-9 f_6">
                                            	 <div class="col-sm-7 f_14">admin
                                                </div>
                                             </div>
                                         </div>
                                         <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_7">提交时间：</label>
                                             <div class="col-sm-9 f_6">
                                            	 <div class="col-sm-7 f_14">2014年4月24日
                                                </div>
                                             </div>
                                         </div>
                                    </div>
                                   <div class="f_2">
                                       <div class="form-group col-sm-6">
                                            <label for="inputtext3" class="col-sm-3 control-label f_4">最后修改人：</label>
                                            <div class="col-sm-9 f_6">
                                           	 <div class="col-sm-7 f_14">
                                           	 	<form:hidden path="updateBy"/>
                                               </div>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-6">
                                            <label for="inputtext3" class="col-sm-3 control-label f_7">最后修改时间：</label>
                                            <div class="col-sm-9 f_6">
                                           	 <div class="col-sm-7 f_14">
                                               </div>
                                            </div>
                                        </div>
                                   </div>
                                    <div class="f_3">
                                        <div class="form-group col-xs-12">
                                             <label for="inputtext3" class="col-lb-1 control-label f_10">简历：</label>
                                             <div class="col-sm-10 col-lb-2 f_6">
                                                  <att:upload modleName="com.maoye.ossp.biz.example.entity.Student" key="resume" soureBillID="${student.id}"></att:upload>
                                             </div>
                                         </div>
                                    </div>
                                   <div class="f_12">
                                        <button type="button" class="btn btn-danger btn_5 btn_right">返&nbsp;回</button>
                                        <button type="button" class="btn btn-success btn_5 btn_right" onclick="submitform('save');">保&nbsp;存</button>
                                        <button type="button" class="btn btn-success btn_5 btn_right" onclick="submitform('update');">更新</button>
                                   </div>
                             
                         </div>
                    </div>
				   <div class="tab-pane" id="workflow"> 
						<c:import url="/WEB-INF/views/bpm/workflow/workFlowInfo_edit.jsp">
							<c:param name="formName" value="com.maoye.ossp.bpm.example.entity.BusForm" />
							<c:param name="flowKey" value="ZCHTXQ" />
							<c:param name="businessId" value="${student.id}"/>
							<c:param name="method" value="${method}"/>
							<c:param name="isStart" value="${isStart}"/>
						</c:import> 			
					</div>
					<div class="tab-pane" id="diagram" style="overflow-x:auto;">
						<iframe id="diagram_iframe" scrolling="no" frameborder=0 width="100%">
						</iframe>
					</div>
				</div>
			</form:form>
			</div>	
		</div>
</body>
</html>